FROM registry.cn-hangzhou.aliyuncs.com/bewithmeallmylife/openjdk:8-jdk-alpine
MAINTAINER xuwenfeng
WORKDIR /srv/app
ADD ./target/avocado-cloud-auth-service-producer-2.0.0.BUILD-SNAPSHOT.jar avocado-cloud-auth-service-producer-2.0.0.BUILD-SNAPSHOT.jar
EXPOSE 7777
RUN echo "Asia/Shanghai" > /etc/timezone
CMD ["java","-jar","/srv/app/avocado-cloud-auth-service-producer-2.0.0.BUILD-SNAPSHOT.jar"]
#sudo docker build -t='registry.cn-hangzhou.aliyuncs.com/bewithmeallmylife/avocado-cloud-auth-service-producer:2.0.0' .
#sudo docker run --net=host --name avocado-cloud-auth-service-producer -it -p 7777:7777 -d registry.cn-hangzhou.aliyuncs.com/bewithmeallmylife/avocado-cloud-auth-service-producer:2.0.0